home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 7
/
PC World Interactive 7.iso
/
program
/
cprog.EXE
/
CC_1.ZIP
/
GETW.C
< prev
next >
Wrap
Text File
|
1988-02-01
|
512b
|
14 lines
/*
** get a word from the stream
*/
#define FILE int
#include "streamio.h"
extern fgetc();
getw(stream) FILE *stream; {
char hi, lo;
if((hi=fgetc(stream)) == EOF) return EOF;
if((lo=fgetc(stream)) == EOF) return EOF;
return (hi << 8) & (lo & 255);
}